import request from '@/utils/request'

// 查询季刊内容列表
export function listQuarterly(query) {
  return request({
    url: '/system/quarterly/list',
    method: 'get',
    params: query
  })
}

// 查询季刊内容详细
export function getQuarterly(quarterlyId) {
  return request({
    url: '/system/quarterly/' + quarterlyId,
    method: 'get'
  })
}

// 新增季刊内容
export function addQuarterly(data) {
  return request({
    url: '/system/quarterly',
    method: 'post',
    data: data
  })
}

// 修改季刊内容
export function updateQuarterly(data) {
  return request({
    url: '/system/quarterly',
    method: 'put',
    data: data
  })
}

// 删除季刊内容
export function delQuarterly(quarterlyId) {
  return request({
    url: '/system/quarterly/' + quarterlyId,
    method: 'delete'
  })
}
